import Vue from 'vue'
import Router from 'vue-router'
import Home from '@/components/Home'
import A from '@/components/A'


Vue.use(Router)

export default new Router({
  routes: [{
    path: '/',
    name: 'Home',
    component: Home
  }, {
    path: '/a',
    name: 'A',
    component: A
  }, {
    path: '/*',
    redirect: '/'
  }]
})